<template>
  <div class="app-container">
    <el-form :model="searchForm" label-width="80px" @keyup.enter.native="search()">
      <el-row>
        <el-col class="other">
          <el-form-item label="姓名" size="small">
            <el-input v-model="searchForm.employeeName"></el-input>
          </el-form-item>
        </el-col>
        <el-col v-if="roleType===0" class="other">
          <el-form-item label="部门" size="small">
            <el-input v-model="searchForm.teamName"></el-input>
          </el-form-item>
        </el-col>
        <el-col class="searchBtn">
          <el-form-item size="small">
            <el-button type="primary" icon="el-icon-search" @click="search()">搜索</el-button>
          </el-form-item>
        </el-col>
      </el-row>
    </el-form>
    <div class="table-btn">
      <!--<el-button type="primary" size="small" icon="el-icon-plus" @click="addTeam()">添加</el-button>-->

      <!--<el-button size="small" icon="el-icon-upload2">导出</el-button>-->
    </div>
    <my-table
      :data="tableData"
      :col-configs="colConfigs"
      v-loading="listLoading"
      :page-num="pageNum"
      :page-size="pageSize"
      @openVisible="openVisible"
    >
      <el-table-column
        slot="opt"
        fixed="right"
        label="操作"
        width="120">
        <template slot-scope="scope">
          <el-button
            @click.native.prevent="editTeam(scope.row.collectId)"
            type="text"
            size="small">
            修改
          </el-button>
          <el-popover
            placement="top"
            width="160"
            :ref="`popover-${scope.$index}`"
          >
            <p>确定删除这条数据吗?</p>
            <div style="text-align: right; margin: 0">
              <el-button size="mini" type="text" @click="$refs[`popover-${scope.$index}`].doClose()">取消</el-button>
              <el-button type="primary" size="mini" @click.native.prevent="deleteRow(scope)">确定</el-button>
            </div>
            <el-button type="text" size="small" slot="reference" v-popover:popover-${scope.$index}>删除</el-button>
          </el-popover>
        </template>
      </el-table-column>
    </my-table>
    <el-pagination
      @size-change="handleSizeChange"
      @current-change="handleCurrentChange"
      :current-page="pageNum"
      :page-sizes="[10, 20, 30, 40]"
      :page-size="pageSize"
      layout="total, sizes, prev, pager, next, jumper"
      :total="total">
    </el-pagination>
    <el-dialog :title="dialogTitle" :visible.sync="outerVisible" width="900px">
      <el-form ref="teamRow" :rules="rules" :model="teamRow" label-width="140px">
        <el-form-item prop="teamName" label="所属团队" size="small" class="item-inline">
          <el-autocomplete
            v-model="teamRow.teamName"
            :fetch-suggestions="querySearchTeam"
            @select="handleSelectTeam"
            placeholder="请输入内容"
          >
          </el-autocomplete>
        </el-form-item>
        <el-form-item prop="name" label="姓名" size="small" class="item-inline">
          <el-autocomplete
            v-model="teamRow.name"
            :fetch-suggestions="querySearchName"
            @select="handleSelectName"
            placeholder="请输入内容"
          >
          </el-autocomplete>
        </el-form-item>
        <el-form-item label="基本信息档案" size="small">
        </el-form-item>
        <el-form-item label="员工入职表" size="small" class="item-inline">
          <input type="file" ref='staffEntry' accept="image/jpeg" @change="fileUpload($event,'staffEntryFile')">
        </el-form-item>
        <el-form-item label="身份证" size="small" class="item-inline">
          <input type="file" ref='idNumber' accept="image/jpeg" @change="fileUpload($event,'idNumberFile')">
        </el-form-item>
        <el-form-item label="证件照" size="small" class="item-inline">
          <input type="file" ref='identificationPhoto' accept="image/jpeg"
                 @change="fileUpload($event,'identificationPhotoFile')">
        </el-form-item>
        <el-form-item label="毕业证" size="small" class="item-inline">
          <input type="file" ref='diploma' accept="image/jpeg" @change="fileUpload($event,'diplomaFile')">
        </el-form-item>
        <el-form-item label="学位证" size="small" class="item-inline">
          <input type="file" ref='graduateDiploma' accept="image/jpeg"
                 @change="fileUpload($event,'graduateDiplomaFile')">
        </el-form-item>
        <el-form-item label="实习协议" size="small" class="item-inline">
          <input type="file" ref='internshipContract' accept="image/jpeg"
                 @change="fileUpload($event,'internshipContractFile')">
        </el-form-item>
        <el-form-item label="离职证明" size="small" class="item-inline">
          <input type="file" ref='resignProve' accept="image/jpeg" @change="fileUpload($event,'resignProveFile')">
        </el-form-item>
        <el-form-item label="劳动合同" size="small" class="item-inline">
          <input type="file" ref='laborContract' accept="image/jpeg" @change="fileUpload($event,'laborContractFile')">
        </el-form-item>
        <el-form-item label="保密合同" size="small" class="item-inline">
          <input type="file" ref='noPublicity' accept="image/jpeg" @change="fileUpload($event,'noPublicityFile')">
        </el-form-item>
        <el-form-item label="职称证" size="small" class="item-inline">
          <input type="file" ref='technicalPosition' accept="image/jpeg"
                 @change="fileUpload($event,'technicalPositionFile')">
        </el-form-item>
        <el-form-item label="注册证" size="small" class="item-inline">
          <input type="file" ref='registration' accept="image/jpeg" @change="fileUpload($event,'registrationFile')">
        </el-form-item>

        <el-form-item label="职业资格证" size="small" class="item-inline">
          <input type="file" ref='credentials' accept="image/jpeg" @change="fileUpload($event,'credentialsFile')">
        </el-form-item>
        <el-form-item label="其他资料" size="small">
          <input type="file" ref='other' accept="image/jpeg" @change="fileUpload($event,'otherFile')">
        </el-form-item>

        <!--
                <el-form-item label="应聘人员信息登记表" size="small" class="item-inline">
                  <input type="file" ref='informationForm' @change="getInformationForm($event)">
                </el-form-item>
                <el-form-item label="体检证明" size="small" class="item-inline">
                  <input type="file" ref='physicalExamination' @change="getPhysicalExamination($event)">
                </el-form-item>
                <el-form-item label="薪酬档案" size="small">
                </el-form-item>
                <el-form-item label="薪酬调整记录表" size="small" class="item-inline">
                  <input type="file" ref='payAdjustment' @change="getPayAdjustment($event)">
                </el-form-item>
                <el-form-item label="薪资确认表" size="small" class="item-inline">
                  <input type="file" ref='payAffirm' @change="getPayAffirm($event)">
                </el-form-item>
                <el-form-item label="绩效档案" size="small">
                </el-form-item>
                <el-form-item label="试用期kpi考核" size="small" class="item-inline">
                  <input type="file" ref='tryKpi' @change="getTryKpi($event)">
                </el-form-item>
                <el-form-item label="月度kpi考核表" size="small" class="item-inline">
                  <input type="file" ref='monthKpi' @change="getMonthKpi($event)">
                </el-form-item>
                <el-form-item label="技术档案" size="small">
                </el-form-item>
                <el-form-item label="离职资料" size="small">
                </el-form-item>
                <el-form-item label="员工辞职报告" size="small" class="item-inline">
                  <input type="file" ref='staffResign' @change="getStaffResign($event)">
                </el-form-item>
                <el-form-item label="离职手续办理表" size="small" class="item-inline">
                  <input type="file" ref='dimissionProcedure' @change="getDimissionProcedure($event)">
                </el-form-item>
                <el-form-item label="终止劳动合同" size="small" class="item-inline">
                  <input type="file" ref='stopLaborContract' @change="getStopLaborContract($event)">
                </el-form-item>
        -->
      </el-form>
      <div slot="footer" class="dialog-footer">
        <el-button type="warning" size="small"  @click="submitForm('teamRow')" v-no-more-click>确定</el-button>
        <el-button size="small" @click="outerVisible = false">取消</el-button>
      </div>
    </el-dialog>
    <el-dialog title="文件查看" :visible.sync="imgVisible" width="600px">
      <img class="img-dialog" :src="imgMsg.src" alt="">
    </el-dialog>
    <el-dialog :title="imgMsg.label" :visible.sync="imgTableVisible" width="650px">
      <my-table
        :data="imgTableData"
        :col-configs="imgConfigs"
        v-loading="listLoading"
        @openVisible="openVisible"
      >
        <el-table-column
          slot="imgOpt"
          fixed="right"
          label="操作"
          width="120">
          <template slot-scope="scope">
            <el-popover
              placement="top"
              width="160"
              :ref="`popover-${scope.$index}`"
            >
              <p>确定删除这条数据吗?</p>
              <div style="text-align: right; margin: 0">
                <el-button size="mini" type="text" @click="$refs[`popover-${scope.$index}`].doClose()">取消</el-button>
                <el-button type="primary" size="mini" @click.native.prevent="deleteImg(scope)">确定</el-button>
              </div>
              <el-button type="text" size="small" slot="reference" v-popover:popover-${scope.$index}>删除</el-button>
            </el-popover>
          </template>
        </el-table-column>
      </my-table>

    </el-dialog>
  </div>
</template>

<script>
  import {
    delCollect,
    getCollect,
    insertCollect,
    selectCollect,
    selectName,
    updateCollect,
    selectTeam,
    selectList,
    delArchive
  } from '@/api/employeefiles'
  import myTable from '@/components/myTable'
  import global from '@/components/global'

  import { Message } from 'element-ui'
  import { AreaSelect } from 'vue-area-linkage'
  import { pca } from 'area-data'
  import { formatDate } from '@/utils/index'

  const filePath = {
    props: ['colConfig'],
    methods: {
      openVisible(label, src, collectId) {
        const msg = {
          label: label,
          src: src,
          collectId: collectId
        }
        this.$emit('openImgVisible', msg)
      }
    },
    template: `
  <el-table-column :label="colConfig.label" :width="colConfig.width">
      <span slot-scope="scope">
      <a v-if="scope.row[colConfig.prop]" @click="openVisible(colConfig.label,scope.row[colConfig.prop],scope.row.collectId)">查看
      </a>
      <a v-else style="color: red">X</a>
      </span>
  </el-table-column>
  `
  }

  const dateCreated = {
    props: ['colConfig'],
    filters: {
      formatDate(time) {
        var date = new Date(time)
        return formatDate(date, 'yyyy-MM-dd')
      }
    },
    template: `
  <el-table-column :label="colConfig.label" :width="colConfig.width">
      <span slot-scope="scope">
        {{ scope.row[colConfig.prop] | formatDate }}
      </span>
  </el-table-column>
  `
  }

  const tertiarySector = function(row, column) {
    if (row.tertiarySector) {
      return row.tertiarySector
    } else {
      if (row[column.property]) {
        let obj = {}
        obj = global[`${column.property}List`].find((item) => {
          return item.value === row[column.property] // 筛选出匹配数据
        })
        return obj.label
      }
    }
  }

  export default {
    components: {
      myTable,
      AreaSelect
    },
    data() {
      return {
        colConfigs: [
          { prop: 'employeeName', label: '姓名', width: '80', fixed: true },
          { prop: 'secondarySector', label: '部门', width: '100', fixed: true, formatter: tertiarySector },
          // { prop: 'staffEntry', label: '员工入职表', width: '100', component: filePath },
          { prop: 'idNumber', label: '身份证', width: '80', component: filePath },
          { prop: 'diploma', label: '毕业证', width: '80', component: filePath },
          { prop: 'technicalPosition', label: '职称证', width: '80', component: filePath },
          { prop: 'registration', label: '注册证', width: '80', component: filePath },
          { prop: 'identificationPhoto', label: '证件照', width: '80', component: filePath },
          // { prop: 'internshipContract', label: '实习协议', width: '80', component: filePath },
          // { prop: 'resignProve', label: '离职证明', width: '80', component: filePath },
          // { prop: 'laborContract', label: '劳动合同', width: '80', component: filePath },
          // { prop: 'noPublicity', label: '保密合同', width: '80', component: filePath },
          { prop: 'credentials', label: '职业资格证', width: '100', component: filePath },
          { prop: 'graduateDiploma', label: '学位证', width: '80', component: filePath },
          { prop: 'other', label: '其他资料', width: '80', component: filePath }
          // { prop: 'informationForm', label: '应聘人员信息登记表', width: '150', component: filePath },
          // { prop: 'physicalExamination', label: '体检证明', width: '150', component: filePath },
          // { prop: 'payAdjustment', label: '薪酬调整记录表', width: '150', component: filePath },
          // { prop: 'payAffirm', label: '薪资确认表', width: '150', component: filePath },
          // { prop: 'tryKpi', label: '试用期kpi考核', width: '150', component: filePath },
          // { prop: 'monthKpi', label: '月度kpi考核表', width: '150', component: filePath },
          // { prop: 'staffResign', label: '员工辞职报告', width: '150', component: filePath },
          // { prop: 'dimissionProcedure', label: '离职手续办理表', width: '150', component: filePath },
          // { prop: 'stopLaborContract', label: '终止劳动合同', width: '150', component: filePath },
          // { slot: 'opt' }
        ],
        imgConfigs: [
          { prop: 'employeeName', label: '姓名', width: '135' },
          { prop: 'filePath', label: '文件', width: '135', component: filePath },
          { prop: 'dateCreated', label: '上传时间', width: '135', component: dateCreated },
          { slot: 'imgOpt' }
        ],
        searchForm: {},
        searchFormList: {},
        tenderNames: [],
        infoTitles: [],
        listLoading: true,
        dialogTitle: '新增人员档案',
        dialogType: 0,
        teamRow: {},
        teamRowClear: {},
        tableData: [],
        pageNum: 1,
        pageSize: 10,
        total: 1,
        outerVisible: false,
        innerVisible: false,
        pca: pca,
        rules: {
          name: [
            { required: true, message: '请输入姓名', trigger: 'change' }
          ],
          teamName: [
            { required: true, message: '请选择所属团队', trigger: 'change' }
          ]
        },
        visible: false,
        imgVisible: false,
        imgTableVisible: false,
        imgMsg: {},
        imgTableData: [],
        imgListLoading: false,
        imgParams: {}
      }
    },
    created() {
      this.teamRowClear = JSON.parse(JSON.stringify(this.teamRow))
      this.fetchData()
    },
    computed: {
      global() {
        return global
      },
      teamId() {
        return this.$store.state.user.teamId
      },
      roleType() {
        return this.$store.state.user.roleType
      },
      teamIds() {
        return this.$store.state.user.teamIds
      }
    },
    methods: {
      fetchData() {
        this.searchFormList.pageNum = this.pageNum
        this.searchFormList.pageSize = this.pageSize
        this.searchFormList.roleType = this.roleType
        this.searchFormList.teamId = this.teamId
        this.searchFormList.teamIds = this.teamIds
        this.listLoading = true
        console.log(this.searchFormList)
        getCollect(this.searchFormList).then(response => {
          this.tableData = response.responseBody.list
          this.total = response.responseBody.total
          this.listLoading = false
        })
      },
      search() {
        this.pageNum = 1
        this.searchFormList = JSON.parse(JSON.stringify(this.searchForm))
        this.fetchData()
      },
      fileClear() {
        if (this.$refs.staffEntry) {
          this.$refs.staffEntry.value = ''
        }
        if (this.$refs.idNumber) {
          this.$refs.idNumber.value = ''
        }
        if (this.$refs.identificationPhoto) {
          this.$refs.identificationPhoto.value = ''
        }
        if (this.$refs.diploma) {
          this.$refs.diploma.value = ''
        }
        if (this.$refs.graduateDiploma) {
          this.$refs.graduateDiploma.value = ''
        }
        if (this.$refs.internshipContract) {
          this.$refs.internshipContract.value = ''
        }
        if (this.$refs.resignProve) {
          this.$refs.resignProve.value = ''
        }
        if (this.$refs.laborContract) {
          this.$refs.laborContract.value = ''
        }
        if (this.$refs.noPublicity) {
          this.$refs.noPublicity.value = ''
        }
        if (this.$refs.technicalPosition) {
          this.$refs.technicalPosition.value = ''
        }
        if (this.$refs.registration) {
          this.$refs.registration.value = ''
        }
        if (this.$refs.credentials) {
          this.$refs.credentials.value = ''
        }
        if (this.$refs.other) {
          this.$refs.other.value = ''
        }
      },
      addTeam() {
        if (this.$refs['teamRow']) {
          this.$refs['teamRow'].resetFields()
        }
        this.outerVisible = true
        this.dialogTitle = '新增人员档案'
        this.teamRow = JSON.parse(JSON.stringify(this.teamRowClear))
        this.teamRow.isTender = 1
        this.dialogType = 1
        this.fileClear()
      },
      editTeam(collectId) {
        if (this.$refs['teamRow']) {
          this.$refs['teamRow'].resetFields()
        }
        this.outerVisible = true
        this.dialogTitle = '修改人员档案'
        this.dialogType = 0
        this.teamRow = JSON.parse(JSON.stringify(this.teamRowClear))
        this.fileClear()
        const params = {
          collectId: collectId
        }
        selectCollect(params).then(response => {
          const data = response.responseBody
          this.teamRow = Object.assign({}, this.teamRow, data)
          this.$set(this.teamRow, 'name', this.teamRow.employeeName)
        })
      },
      submitForm(formName) {
        const params = new FormData()
        params.append('employeeId', this.teamRow.employeeId)
        params.append('employeeName', this.teamRow.employeeName)
        params.append('teamId', this.teamRow.teamId)
        params.append('teamName', this.teamRow.teamName)
        if (this.teamRow.staffEntryFile) {
          params.append('staffEntryFile', this.teamRow.staffEntryFile)
        }
        if (this.teamRow.idNumberFile) {
          params.append('idNumberFile', this.teamRow.idNumberFile)
        }
        if (this.teamRow.identificationPhotoFile) {
          params.append('identificationPhotoFile', this.teamRow.identificationPhotoFile)
        }
        if (this.teamRow.diplomaFile) {
          params.append('diplomaFile', this.teamRow.diplomaFile)
        }
        if (this.teamRow.graduateDiplomaFile) {
          params.append('graduateDiplomaFile', this.teamRow.graduateDiplomaFile)
        }
        if (this.teamRow.internshipContractFile) {
          params.append('internshipContractFile', this.teamRow.internshipContractFile)
        }
        if (this.teamRow.resignProveFile) {
          params.append('resignProveFile', this.teamRow.resignProveFile)
        }
        if (this.teamRow.laborContractFile) {
          params.append('laborContractFile', this.teamRow.laborContractFile)
        }
        if (this.teamRow.noPublicityFile) {
          params.append('noPublicityFile', this.teamRow.noPublicityFile)
        }
        if (this.teamRow.technicalPositionFile) {
          params.append('technicalPositionFile', this.teamRow.technicalPositionFile)
        }
        if (this.teamRow.registrationFile) {
          params.append('registrationFile', this.teamRow.registrationFile)
        }
        if (this.teamRow.credentialsFile) {
          params.append('credentialsFile', this.teamRow.credentialsFile)
        }
        if (this.teamRow.otherFile) {
          params.append('otherFile', this.teamRow.otherFile)
        }
        // if (this.teamRow.informationFormFile) {
        //   params.append('informationFormFile', this.teamRow.informationFormFile)
        // }
        // if (this.teamRow.physicalExaminationFile) {
        //   params.append('physicalExaminationFile', this.teamRow.physicalExaminationFile)
        // }
        //
        // if (this.teamRow.payAdjustmentFile) {
        //   params.append('payAdjustmentFile', this.teamRow.payAdjustmentFile)
        // }
        // if (this.teamRow.payAffirmFile) {
        //   params.append('payAffirmFile', this.teamRow.payAffirmFile)
        // }
        // if (this.teamRow.tryKpiFile) {
        //   params.append('tryKpiFile', this.teamRow.tryKpiFile)
        // }
        // if (this.teamRow.monthKpiFile) {
        //   params.append('monthKpiFile', this.teamRow.monthKpiFile)
        // }
        // if (this.teamRow.staffResignFile) {
        //   params.append('staffResignFile', this.teamRow.staffResignFile)
        // }
        // if (this.teamRow.dimissionProcedureFile) {
        //   params.append('dimissionProcedureFile', this.teamRow.dimissionProcedureFile)
        // }
        // if (this.teamRow.stopLaborContractFile) {
        //   params.append('stopLaborContractFile', this.teamRow.stopLaborContractFile)
        // }
        if (!this.dialogType) {
          params.append('collectId', this.teamRow.collectId)
        }
        if (this.teamRow.teamId && this.teamRow.employeeId) {
          this.$refs[formName].validate((valid) => {
            if (valid) {
              if (this.dialogType) {
                insertCollect(params).then(response => {
                  console.log(response)
                  this.outerVisible = false
                  this.fetchData()
                })
              } else {
                updateCollect(params).then(response => {
                  console.log(response)
                  this.outerVisible = false
                  this.fetchData()
                })
              }
            } else {
              console.log('error submit!!')
              return false
            }
          })
        } else if (!this.teamRow.teamId) {
          this.$message({
            message: '该团队不存在',
            type: 'warning'
          })
        } else if (!this.teamRow.employeeId) {
          this.$message({
            message: '该员工不存在',
            type: 'warning'
          })
        }
      },
      deleteRow(scope) {
        this.$refs[`popover-${scope.$index}`].doClose()
        const params = {
          collectId: scope.row.collectId,
          isDel: 1
        }
        delCollect(params).then(response => {
          this.fetchData()
        })
      },
      deleteImg(scope) {
        this.$refs[`popover-${scope.$index}`].doClose()
        const params = {
          archiveId: scope.row.archiveId
        }
        delArchive(params).then(response => {
          this.imgListLoading = true
          selectList(this.imgParams).then(response => {
            this.imgTableData = response.responseBody
            this.imgListLoading = false
          })
        })
      },
      handleSizeChange(val) {
        this.pageSize = val
        this.fetchData()
      },
      handleCurrentChange(val) {
        this.pageNum = val
        this.fetchData()
      },
      fileUpload(event, teamRowName) {
        const jpg = event.target.value
        var reg = /^.*\.(?:jpg)$/i
        if (!reg.test(jpg)) {
          Message({
            message: '请上传jpg格式的图片!',
            type: 'error',
            duration: 5 * 1000
          })
          event.target.value = ''
          return
        } else {
          this.$set(this.teamRow, teamRowName, event.target.files[0])
        }
      },
      openVisible(msg) {
        if (msg.label === '劳动合同' || msg.label === '保密合同' || msg.label === '职业资格证' || msg.label === '其他资料') {
          this.imgTableVisible = true
          this.imgParams = {
            collectId: msg.collectId
          }
          if (msg.label === '劳动合同') {
            this.imgParams.fileType = 1
          } else if (msg.label === '保密合同') {
            this.imgParams.fileType = 2
          } else if (msg.label === '职业资格证') {
            this.imgParams.fileType = 3
          } else {
            this.imgParams.fileType = 4
          }
          this.imgListLoading = true
          selectList(this.imgParams).then(response => {
            this.imgTableData = response.responseBody
            this.imgListLoading = false
          })
        } else {
          this.imgVisible = true
        }
        this.imgMsg = msg
      },
      querySearchName(queryString, callback) {
        // queryString 为在框中输入的值
        // callback 回调函数,将处理好的数据推回
        delete this.teamRow.employeeId
        if (queryString) {
          const params = {
            name: queryString
          }
          selectName(params).then(response => {
            for (const i of response.responseBody) {
              i.value = i.name + ' ' + i.idNumber
            }
            let nameList = response.responseBody
            if (nameList.length === 0) {
              nameList = [{ value: '暂无数据' }]
            }
            callback(nameList)
          })
        } else {
          callback([])
        }
      },
      handleSelectName(item) {
        this.teamRow.employeeId = item.employeeId
        this.teamRow.employeeName = item.name
      },
      querySearchTeam(queryString, callback) {
        // queryString 为在框中输入的值
        // callback 回调函数,将处理好的数据推回
        delete this.teamRow.teamId
        if (queryString) {
          const params = {
            teamName: queryString
          }
          selectTeam(params).then(response => {
            for (const i of response.responseBody) {
              i.value = i.teamName
            }
            let nameList = response.responseBody
            if (nameList.length === 0) {
              nameList = [{ value: '暂无数据' }]
            }
            callback(nameList)
          })
        } else {
          callback([])
        }
      },
      handleSelectTeam(item) {
        console.log(item)
        this.$set(this.teamRow, 'teamId', item.teamId)
        this.$set(this.teamRow, 'teamName', item.teamName)
      }
    },
    mounted() {
      console.log(this.pca)
    }
  }
</script>

<style rel="stylesheet/scss" lang="scss" scoped>
  .app-container {
    .el-pagination {
      margin-top: 20px;
    }
    .table-btn {
      margin-bottom: 10px;
      & > button {
        margin: 0 20px;
      }
      .el-dialog {
        textarea {
          margin-top: 10px;
        }
        .el-checkbox {
          margin-right: 20px;
        }
        .el-checkbox + .el-checkbox {
          margin-left: 0;
        }
      }
    }
    .item-inline {
      display: inline-block;
      width: 400px;
    }
    .img-dialog {
      max-width: 540px;
    }
  }

</style>


<style rel="stylesheet/scss" lang="scss">
  .el-input__icon {
    line-height: 100%;
  }

  .el-form-item__content {
    line-height: 33px;
  }

  .area-select .area-selected-trigger {
    padding: 0 10px;
  }

  a, a:focus, a:hover {
    color: #409EFF;
  }

  /*.el-table__body tr.hover-row>td {
    background-color: #0000ff !important;
  }

  .el-table__body tr.current-row>td {
    background-color: #0000ff !important;
  }*/
</style>
